”kernel tracer“ 的搜索结果
本文以blk_update_request函数为例进行说明。kernel版本:5.10平台:arm64编译阶段。通过编译选项 -pg -mrecord-mcount 在每个支持ftrace的函数中插入bl 0 指令链接阶段。会根据重定位段将bl 0 指令地址重定位为_...
1. ftrace通过debugfs想userspace提供访问接口,编译时内核会使用编译器的-pg选项(该选项在内核的Makefile: kernel/trace/Makefile中定义) 2. 配置内核激活debugfs后(CONFIG_DEBUG_FS=y),会创建目录"/sys/kernel/...